<template>
  <div id="app">
    <el-container class="">
      <el-header v-show="$store.state.flag">
        <!-- <MyHeader/> -->
        <HeaderNav v-show="$store.state.flag" />
      </el-header>
      <el-main :class="{ main: $route.path == '/home' }"
        ><router-view></router-view
      ></el-main>
    </el-container>
  </div>
</template>
<script>
// import MyHeader from '../component/header/MyHeader.vue'
import HeaderNav from "./component/header/HeaderNav.vue";
export default {
  name: "AboutView",
  components: {
    // MyHeader,
    HeaderNav,
  },
  mounted() {
    console.log(this.$route);
  },
};
</script>
<style lang="css" scpoed>
* {
  margin: 0;
  padding: 0;
}
.el-header {
  padding: 0 !important;
}
.roots {
  width: 100%;
  height: 200px;
  background-color: blue;
}
.exam-icon {
  width: 200px;
  height: 100%;
}
.main {
  padding: 0 !important;
}
</style>
